Fix smp cpu detect on gcc 4.5.