fix os x finding stuff, and rb_raise calls