--- src/pubsubmanager.cpp.orig	Thu Apr 20 01:48:03 2017
+++ src/pubsubmanager.cpp	Thu Apr 20 01:49:03 2017
@@ -20,6 +20,8 @@
 #include "shim.h"
 #include "util.h"
 #include "error.h"
+#include <cstdlib>
+using std::atoi;
 
 namespace gloox
 {
