Fix small issues with `cppbuild.sh` scripts on Linux and Mac OS X