diff --git a/otherbuilds/Android.mk b/otherbuilds/Android.mk
index f1ef0b2..681a677 100644
--- a/otherbuilds/Android.mk
+++ b/otherbuilds/Android.mk
@@ -28,6 +28,7 @@ RUBBERBAND_SRC_FILES := \
$(RUBBERBAND_SRC_PATH)/common/Allocators.cpp \
$(RUBBERBAND_SRC_PATH)/common/StretchCalculator.cpp \
$(RUBBERBAND_SRC_PATH)/common/sysutils.cpp \
+ $(RUBBERBAND_SRC_PATH)/common/mathmisc.cpp \
$(RUBBERBAND_SRC_PATH)/common/Thread.cpp \
$(RUBBERBAND_SRC_PATH)/finer/R3StretcherImpl.cpp
diff --git a/otherbuilds/Makefile.ios b/otherbuilds/Makefile.ios
index d1a1977..b7fec88 100644
--- a/otherbuilds/Makefile.ios
+++ b/otherbuilds/Makefile.ios
@@ -55,6 +55,7 @@ LIBRARY_SOURCES := \
src/common/Resampler.cpp \
src/common/StretchCalculator.cpp \
src/common/sysutils.cpp \
+ src/common/mathmisc.cpp \
src/common/Thread.cpp \
src/finer/R3Stretcher.cpp
diff --git a/otherbuilds/Makefile.linux b/otherbuilds/Makefile.linux
index e12cbcd..0d91e3a 100644
--- a/otherbuilds/Makefile.linux
+++ b/otherbuilds/Makefile.linux
@@ -44,6 +44,7 @@ LIBRARY_SOURCES := \
src/common/Resampler.cpp \
src/common/StretchCalculator.cpp \
src/common/sysutils.cpp \
+ src/common/mathmisc.cpp \
src/common/Thread.cpp \
src/finer/R3Stretcher.cpp
diff --git a/otherbuilds/Makefile.macos b/otherbuilds/Makefile.macos
index 5819dbd..9a43be3 100644
--- a/otherbuilds/Makefile.macos
+++ b/otherbuilds/Makefile.macos
@@ -44,6 +44,7 @@ LIBRARY_SOURCES := \
src/common/Resampler.cpp \
src/common/StretchCalculator.cpp \
src/common/sysutils.cpp \
+ src/common/mathmisc.cpp \
src/common/Thread.cpp \
src/finer/R3Stretcher.cpp
diff --git a/otherbuilds/Makefile.macos-universal b/otherbuilds/Makefile.macos-universal
index 5513ff7..03f4a0a 100644
--- a/otherbuilds/Makefile.macos-universal
+++ b/otherbuilds/Makefile.macos-universal
@@ -44,6 +44,7 @@ LIBRARY_SOURCES := \
src/common/Resampler.cpp \
src/common/StretchCalculator.cpp \
src/common/sysutils.cpp \
+ src/common/mathmisc.cpp \
src/common/Thread.cpp \
src/finer/R3Stretcher.cpp
diff --git a/otherbuilds/rubberband-library.vcxproj b/otherbuilds/rubberband-library.vcxproj
index 3f84bb1..816c8be 100644
--- a/otherbuilds/rubberband-library.vcxproj
+++ b/otherbuilds/rubberband-library.vcxproj
@@ -157,6 +157,7 @@
+
diff --git a/src/common/mathmisc.h b/src/common/mathmisc.h
index 3928b8e..578d818 100644
--- a/src/common/mathmisc.h
+++ b/src/common/mathmisc.h
@@ -24,6 +24,8 @@
#ifndef RUBBERBAND_MATHMISC_H
#define RUBBERBAND_MATHMISC_H
+#include "sysutils.h"
+
#ifndef M_PI
#define M_PI 3.14159265358979323846
#endif // M_PI