added conditionals based on nginx version around ngx_sock_ntop changes