makefile improved, operating system type handling added