Update gcc to latest version, enable Graphite loop optimizations

I tested this on my linux box.  I didn't update GMPVERSION to 6.0.0 because that version has problems building on various *BSDs.