Make compatible with C++98, silence warnings.

This fixes a little fallout from merging the mirror_grid program.