tweaked OSX Makefile to properly find SYSROOT
handle runtime function overriding