update some custom makefiles for recent changes in build system
update Makefile.shlib to be in sync with the standard makefile