small portability problem: fgetpos/fsetpos in iomonad.c