Cleaned up a few minor things

Even though this is depreciated it still has functionality that the replacement module does not - mainly the time limits. Here are a few cleanups to make it build properly on the latest nginx-1.4 and slightly easier to debug.