CMake: Fixed bug in detection and handle of "Boost_USE_STATIC_LIBS". Should now work out of the box whether the libs are static or not.