Fixing calls to deprecated POSIX functions itoa and gcvt.