Fix linking errors with Visual C++
Fix important Visual C++ warnings with QtViewController