--- a/openpgl/openpgl_common.h
+++ b/openpgl/openpgl_common.h
@@ -20,6 +20,10 @@
 #include <algorithm>
 #include <cmath>
 
+#if defined(__aarch64__)
+#include <mm_malloc.h>
+#endif
+
 #if defined(__WIN32__) || (defined(__MACOSX__) && !defined(__INTEL_COMPILER))
 
 inline void sincosf(const float theta, float *sin, float *cos)
--- a/third-party/embreeSrc/common/sys/alloc.cpp
+++ b/third-party/embreeSrc/common/sys/alloc.cpp
@@ -4,6 +4,13 @@
 #include "alloc.h"
 #include "intrinsics.h"
 
+#ifdef _WIN32
+#define WIN32_LEAN_AND_MEAN
+#include <windows.h>
+
+#define _mm_malloc(size, alignment) _aligned_malloc(size, alignment)
+#define _mm_free(ptr) _aligned_free(ptr)
+#endif
 
 ////////////////////////////////////////////////////////////////////////////////
 /// All Platforms
