Moved to GCC 4.7 and cleaned up a lot of things.