Add includes for std::unique_ptr

Only needed for newer versions of gcc.