Made compatible with later nginx versions

I wanted to make this module play nice alongside latest nginx_lua, so I did!

A disclaimer:: I have not written c in nearly 10 years, but this does compile and run. I am able to make tcp connections and write the data I send to the server to a file. I can also get responses back. I don't think I broke anything too badly =)