simplify makefile hacks for os x