diff -up openmsx-0.12.0/src/RTScheduler.cc~ openmsx-0.12.0/src/RTScheduler.cc
--- openmsx-0.12.0/src/RTScheduler.cc~ 2015-09-14 18:18:18.000000000 +0200
+++ openmsx-0.12.0/src/RTScheduler.cc 2016-02-21 11:07:59.539881004 +0100
@@ -1,6 +1,7 @@
#include "RTScheduler.hh"
#include "RTSchedulable.hh"
#include <algorithm>
+#include <iterator>
#include <limits>
namespace openmsx {
diff -up openmsx-0.12.0/src/video/ZMBVEncoder.cc~ openmsx-0.12.0/src/video/ZMBVEncoder.cc
--- openmsx-0.12.0/src/video/ZMBVEncoder.cc~ 2015-09-14 18:18:18.000000000 +0200
+++ openmsx-0.12.0/src/video/ZMBVEncoder.cc 2016-02-21 11:08:00.427885378 +0100
@@ -10,6 +10,7 @@
#include <cstdlib>
#include <cstring>
#include <cmath>
+#include <iterator>
namespace openmsx {