Improve detecting Windows platform.
Merge pull request #44 from kowal/windows_mingw_support

Improve detecting Windows platform.