expand build_ffi helper function
set defaults on build_ffi
Merge pull request #965 from reaperhulk/make-build-ffi-more-flexible

expand build_ffi helper function