Build with Qt 5.1.
Silence some compiler warnings and clean up includes.