Fix 10.9 Ruby.framework detection/compilation

Mac OS X Mavericks ships with Ruby.framework 2.0 which requires some
fixes to enable proper header inclusion and version defines.