Added multi-os support to Makefile