qt5-static: Fixes for cmake

Remove the previous attempts, add a better one, still not
perfect.

TARGET_PROPERTY:WIN32_EXECUTABLE isn't working for some
reason so we use CMAKE_HOST_WIN32 instead.