compile as a shared library
use ruby-ffi to test as a lib