the PERL_NO_GET_CONTEXT is actually required, see perlguts
diff --git a/src/http/modules/perl/nginx.xs b/src/http/modules/perl/nginx.xs
index 8f1854b..90b4c57 100644
--- a/src/http/modules/perl/nginx.xs
+++ b/src/http/modules/perl/nginx.xs
@@ -4,6 +4,8 @@
  */
 
 
+#define PERL_NO_GET_CONTEXT
+
 #include <ngx_config.h>
 #include <ngx_core.h>
 #include <ngx_http.h>