Add std::unique_ptr and std::move checks to configure script.

Review: https://reviews.apache.org/r/25448