added compiler check in makefile

added a conditional within the makefile to check first for clang, if 'which' returns an error code, try gcc.