Fix support for gcc versions <4.8