Compiling the latest version from source fails on macOS

Thanks for reporting. Pushed a fix. Will discuss further at Partial IPv6 support