When using QAxServer, ensure that the qtmain library is excluded by reporting an error at CMake time if it is not.