makefile updated for os-compatibility