Allow cross-compiling Tiled using MinGW

Needed some small modifications.