--- projectM-2.0.1-Source/Common.hpp
+++ projectM-2.0.1-Source.mod/Common.hpp
@@ -30,6 +30,7 @@
 #include <typeinfo>
 #include <cstdarg>
 #include <cassert>
+#include <math.h>
 #ifdef _MSC_sVER
 #define strcasecmp(s, t) _strcmpi(s, t)
 #endif
@@ -55,7 +56,7 @@
 
 #ifdef LINUX
 #include <cstdlib>
-#define projectM_isnan isnan
+#define projectM_isnan __isnan
 
 #endif