fix the makefile, so it can be build on Mac