Project fixes

In debug: optimization is NONE, and other small fixes for Mac