Updating Makefile to correctly detect OSX and Linux.