Remove use of off_ and long for file offsets

For consistent cross-platform usage, use 64-bit integer offsets for all
file offsets in the API