Update osx conditionals for ffi.
Be (in an ugly way) explicit about ptrtype_t.