Thanks to the student's GSoC unit test I discovered that an override of BOOST_THREAD_VERSION without rebuilding the libraries introduces memory corruption. Nice :(. Now code detects BOOST_THREAD_VERSION value and adjusts accordingly.