allows to enable/disable the use of sendfile()

fix #6