makefile unix compatible
minor optimizations