76f01fd4d3 removes the <memory> header which is required to use std::unique_ptr for some builds (e.g. archlinux using gcc 12.1.0).
76f01fd4d3