gcc 3.2.2 and 4.1.0 portability hacks.