Fix makefiles for building on Mavericks
Merge pull request #276 from mikehearn/mavericks-fix

Fix makefiles for building on Mavericks