Check linking with Boost libraries. Use threaded versions.