I believe I added zmq.h to php_zmq.h for the ZEND_BEGIN_MODULE_GLOBALS macro.