Adjust build script for portability