only link to Qt5::WinMain on windows. (fixes link error on non-windows platforms)
get rid of cmake policy CMP0020 warning on windows.