Rationalized flags for Windows/non-Windows code, removed reference to checkNetwork() for Windows, as it doesn't appear to work reliably.