Fix for compiling with g++ on windows and compiler flags for example