sendfile: remove compiler warning when casting a pointer to fd