Patched GCoptimization to compile on Ubuntu 12.10 and set EnergyType and
EnergyTermType to float.