I'm one of the Phusion Passenger authors. For Phusion Passenger support, please use the Phusion Passenger discussion forum, not the Nginx forum. It's here: https://groups.google.com/forum/#!forum/phusion-passenger
This is a compilation problem due to some old code which tries to support Nginx 0.7. I've just fixed this, and the fix will be available in the next version, 4.0.42. https://github.com/phusion/passenger/commit/5c1a24d06a0ea5c3f6982b4ebe6322c4eb818601