Fix for stock ruby 2.0.0 on osx 10.9. Fixes #1101.

reviewed: @tenderlove