Added #define __WINDOWS_MM__  in order to compile on Windows