fix build on some older versions of gcc