Added Centos 5 (comm v5.97) compat. Fixed various glitches.