Wrapping the includes of the third party files into this macro seems to solve this issue:
THIRD_PARTY_INCLUDES_START
#include <boost/thread/mutex.hpp>
THIRD_PARTY_INCLUDES_END
There seem to be some naming issues why those macros are not defined, maybe…