Patch from Charles-Antoine Gauthier <charles.gauthier@…> that removes warnings from the network.c file and has slight additions to the configuration file to support Java.