Fix handling of ENABLE_DISCOVERY in WebKitGTK's build files, 

... and use isASCIISpace instead of std::isspace because WebKit doesn't like std::isspace.