Fix warnings in get_gateway-bsd.h