normalized testmm makefiles a bit
simplify datatypes in PortalMemory (to make it easier to interface from a kernel driver)