Updated Makefile to detect OS.