simplify OSX platform detection in makefile using xcode-select.  based on patch from John Pender