Fix #define conflicts with mingw-w64