Fixed error in build script to allow for pascal builds