ifdef so only builds on unix system
moving all unix stuff into src dir
fix makefiles
few more makefile fixes