C/C++ beanstalk client