beanstald: fix compilation under macOS