smalloc: move to size_t for allocations