Test IPv6 on startup and disable its use on failure

On systems that don't support IPv6, IPv6 currently has to be disabled manually.  With this patch IPv6 is tested on startup if it is enabled.  If the test fails, a warning is printed and IPv6 is disabled for the time being.  This patch addresses #793.