Fix compilation for gcc versions < 4.7.