libs/nixio: implement getproto(), getprotobyname() and getprotobynumber()