Fix issue where sendfile() truncates writes to 2GB and returns