started to add Makefile.defs
minor fixes