Added unsafe_destructor to fix build