Boilerplate for Ruby gem with native extensions written in C++