minor enhancements to build scripts