Makefile is now OS X compatible.

Added a conditional that checks for the operating system and modifies CXXFLAGS and LDFLAGS accordingly.