Automatically link to qtmain.a on Windows.

Set policy CMP0020 to NEW by increasing the required version.
Merge topic 'Qt-auto-generators' into next

773dd1c Automatically link to qtmain.a on Windows.