add search path for mac os x homebrew ffi install
added helper function for errno / strerror
ffi compatibility layer