drop the use of getprotobyname_r()