Split out FlashMem in to its own file to work around a compiler bug.