io: fix build with FSF/Apple GCC