std::auto_ptr is deprecated in c++11/c++0x

This will use std::unique_ptr on C++11 and remove deprecation warning.
Merge pull request #217 from nanoant/patch/std-auto_ptr-deprecated

std::auto_ptr is deprecated in c++11/c++0x
Merge remote-tracking branch 'upstream/master'