A portable trash implementation.