use swig to generate a ruby wrapper for some simple c code