Replaced a boost::bind in cross_thread_semaphore.hpp.