Fix #define conflicts with mingw-w64

Windows build