Miscellaneous improvements for GCC 4.5

* Enable graphite loop optimization.
  - Depends on legacy versions of support libraries.
* Other configure option improvements.