library build script adjustments