Fix C++ flags for std::unique_ptr