Updates to standalone codes for modern versions of gcc/g++ compilers.