Fixes: OSX crash

Original Author: RobertLowe
Conflicts:
   CaveStory/src/main.cc
   Makefile