Compatibility implementation of fsetpos.