Fixed code typos that prevent compiling on OS X

After fixing these two typos (and adding the other fix for Ruby's include), I was finally able to compile on OS X.