Update makefile

Allow it to be compilable in mac