implement xfseek, xftell and xrewind