map off_t to int

Fixes #437.