fix clang 3.5 warnings.
suppress C++11 deprecation warnings (notably auto_ptr).