altered Makefile to detect installed SDK version