Remove unused pbase variable.
Use inet_addr instead of inet_network to fix windows build.