C++ : Unable to make qmlRegisterType work