more makefile tweaks for shlibs