add explicit int64_t conversion

OS X has trouble deciding between int and int64_t when converting from a
ssize_t.