add io->autofd
Enable io->autofd by default and set if no curfd is set