compile mingw with --pthread