Make compatible with C++98, silence warnings.
Merge pull request #692 from atgeirr/fix-mirror-grid

Make compatible with C++98, silence warnings.