fixed makefile release mode to work on Mac