build enhancements  and libpkgsrc support

build enhancements  and libpkgsrc support.