diff --git a/CMakeLists.txt b/CMakeLists.txt
index 92b25263c4a7811b53f4567b90aee79c426a7a73..d2f2e8e25287f9cecb192820fea5d61e9f119fe9 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1,4 +1,4 @@
-cmake_minimum_required(VERSION 3.12)
+cmake_minimum_required(VERSION 3.10)
 
 project(bgslibrary)
 
diff --git a/examples/CMakeLists.txt b/examples/CMakeLists.txt
index 0dc3d0a1f5f8e869fa92a9b61d963ce6de5f98af..03296d9d08ca4a14eb58df37cceb5d9af5ac15fc 100644
--- a/examples/CMakeLists.txt
+++ b/examples/CMakeLists.txt
@@ -1,4 +1,4 @@
-cmake_minimum_required(VERSION 3.12)
+cmake_minimum_required(VERSION 3.10)
 
 project(bgslibrary-examples)
 
diff --git a/examples/Demo.cpp b/examples/Demo.cpp
index 9166d48e54ccef8bb878f7b2ba35b6b4d98520cf..2bfec63b297acb1f1ec796f5349a9137d0674512 100644
--- a/examples/Demo.cpp
+++ b/examples/Demo.cpp
@@ -1,4 +1,6 @@
 #include <iostream>
+#include <algorithm>
+#include <iterator>
 #include <vector>
 #include <opencv2/opencv.hpp>
 
diff --git a/examples/Demo2.cpp b/examples/Demo2.cpp
index dd867048ecf172556d525a2307fbe99b98793898..8b4f69839d141345a01c423d1bd98d3d34b287bb 100644
--- a/examples/Demo2.cpp
+++ b/examples/Demo2.cpp
@@ -1,4 +1,6 @@
 #include <iostream>
+#include <algorithm>
+#include <iterator>
 #include <vector>
 #include <opencv2/opencv.hpp>