Changed linking options on Linux, the option boost_thread-mt does not exist in Ubuntu 14.04, actually libboost_thread-mt.a was a soft link to libboost_thread.a.
boost::lock_guard requires locks.hpp