refs #10371. Try to make platform specific.

Use Logger to report problems rather than fall over
Treat isHttpProxy nicely rather than throwing
Use preprocessor and cmake commands to limit these changes to only affect OSX
Make logging better
Test that it works