Fix for  OS X build issues #3 - Makefile refactoring with SDK tool-chain variables (incomplete)