fix has_sendfile ifdef, use the correct defined constant

Hi,

On linux you get an error saying "sendfile not supported on this OS" . Reason is has_sendfile() checks for HAS_SENDFILE instead of HAVE_SENDFILE which is what the configuration script creates, also used correctly elsewhere in the file.

thanks,
Ran