Fix moc warnings on headers that do not require QObject