Implemented support for C++11's condition variables. Refs #77.