Implement dealloc for *nix