fixed sendfile on smartos/omnios