Fix QMetaType registration with Qt 5