Fix the build script for non-Ubuntu systems.