fix build issues on osx10.8(xcode5 macruby 0.13)