Add #include <cstring> to Mara/subgrids.cpp