nttpd: allow sendfile() to cope with files >= 2GB; introduce range support

(This re-applies most of the patches I've reverted about two hours ago.)
Merge remote-tracking branch 'martiis-neutrino-mp/master'