Support building with gcc versions earlier than 4.8