added a replacement inet_aton() for systems that don't have it.