make it compile under mingw (needed a few macros in main.cpp)