Denote base class destructors as virtual. Add missing include for unistd to account.