THRIFT-1462 add more strict compiler flags FIX: check for MINGW and use reduced compiler flag set for mingw