win32: auto-detect Qt5/4 for production build