fix ensure ffi function
Merge pull request #11 from hdgarrood/master

fix ensure ffi function