changed Makefile to be more tolerant of older cmake versions