Only set h_errno in the context of looking up hosts
Code cleanup