gcc: Fix building 4.5 and 4.6