Fix compilation on OS X (at least 10.9)

 - these are a bunch of typos that break compilation on OS X
Merge pull request #5 from NikolausDemmel/fix-osx

Fix compilation on OS X (at least 10.9)