Add Qt5 moc files.
Add flag which Qt version to use.
Fix includes.