fix libgcc handling for gcc 3.4.5 and 4.0.2