ironing out compile issues with build script