add OS detect to makefile