Updates to Compile on Linux

Changes that let Sphere compile on a modern Linux machine, using fully updated libraries and compiler.