added compiler dependent compile flags
Merge branch 'FlorianRudolf/fix-windows-compatibility' into next