cmake: added option WITH_BOOST_THREAD and improved boost-related configuration
threading: include "boost/thread.hpp" instead of individual files
introduced VIGRA_SHARED_PTR and made VIGRA_UNIQUE_PTR more portable
 hdf5impex: Added parentheses around a default parameter, since clang and gcc can't parse it otherwise, but keep it without parens for Visual Studio.