Store ulong and size_t from sockets as 64-bit ints