Support sendfile64.

Partially resolves issue #1039.