Changed build flag to support compilation with mingw.