Fix bc905fcd, include boost/version.hpp before using BOOST_VERSION macro

The old commit uses the BOOST_VERSION macro before it is defined, hence the boost/thread/lock_guard.hpp never gets included, leading to the same compile errors which the commit is supposed to fix.

Also, some files in depth_image_proc needed the same fix.