add defines needed for alpine linux. Reported and fix by Renaud Allard renaud at allard dot it
add configure check for res_hnok(), needed for alpine linux