resolve nginx APIs difference

Fix to  compile with latest nginx master