Fix Makefile to consider platform specific stuff, get rid of -framwork command line switch for linking