made the makefile hopefully safe to use, thanks to szo and Spike