fix build problem with some older gcc versions

For example those in Ubuntu 12.04 and RHEL 5.