Fixing for OS X

Got this working on OS X 10.9. Maybe that's not desired in the main repo, but I thought I'd PR it just in case.