changed usage of PortalAlloc -> int (only fd is used now)
shifted to use a single global fd for all accesses to /dev/portalmem