adding patch for nginx 1.4.0+

The 1.3.14 patch didn't apply cleanly. I think I made this one correctly, but someone should double check!