Modify build script to run on recent linux systems.