Fix the build script to accept custom global properties