bug fix. ps: beanstalkpp must be compiled >=g++-4.7.2, otherwise blocks built above will be buggy