makefile: osx fix debug target + fix optimization flags