Drop in replacement for Ruby rmate, written in C