Fix build.sh for non-Linux systems.