Missing headers and confusion between std::bind and bind. Signed-off-by: Rosen Penev <rosenp@gmail.com>