Memmap pointer cleanup.

Change the pointer types to match dolphin's coding guidelines and a few other cleanups.