Change for windows native static build.

1. Qt 4.8.6 does not have static imageformats plugin
2. cmake have MSVC and MINGW variable
3. rewrite openssl linking options