mymemory: fix compiling with !USE_MPROTECT_SNAPSHOT