Some fixes for old versions of gcc.