makefiles: osx, better sdk path detection