Fix boost/bind.hpp includes. Use mutex instead of OWLSemaphore