move to C++, add meta-rb macro