forward declare mapped_region in mapped_memory_cache.hpp and other shared memory fixups