Small modifications to allow to crosscompile tiled using mingw