Register c++ type to qml

Even less C++11 features