Avoid using Windows 95 style

The Windows 95 style is really ugly but somehow gets chosen by default
sometimes, even with Qt 5 where the much better Fusion style is available.
Avoid it on any platform but Windows.

The code was borrowed from Qt Creator.
Allow cross-compiling Tiled using MinGW

Needed some small modifications.
Merge branch '0.9'