Fix build.

Add core-private to QT and include moc generated files.