ftell: do not assume wraparound signed arithmetic