Fixed bugs on OS X 10.9 (ruby 2.0)
Merge pull request #117 from dengjw/master

Fixed bugs on OS X 10.9 (ruby 2.0)