Remove pre-gcc4.1.0 code and a bunch of functions that were never used.