merge off 4.1b with 4.1c; and random conversion to netdb library