Still moving to standard types. Also splitting emu include file.
Fix memory.c build.