Fix msvc compile issue in mainapplication use of undefined type
RegisterQAppAssociation