Changed OpenGL call; mjpeg_mutex_t replaced with std::mutex