Adoptions to Mac OS X 10.9 Mavericks

Added a few tweaks for project to be compiled on Mac OS X 10.9 Mavericks.