Index: lemon/dim2.h
===================================================================
--- lemon/dim2.h	(revision 714)
+++ lemon/dim2.h	(revision 1112)
@@ -21,4 +21,5 @@
 
 #include <iostream>
+#include <algorithm>
 
 ///\ingroup geomdat
Index: lemon/math.h
===================================================================
--- lemon/math.h	(revision 1092)
+++ lemon/math.h	(revision 1112)
@@ -68,5 +68,5 @@
   ///Round a value to its closest integer
   inline double round(double r) {
-    return (r > 0.0) ? floor(r + 0.5) : ceil(r - 0.5);
+    return (r > 0.0) ? std::floor(r + 0.5) : std::ceil(r - 0.5);
   }
 
