Liana: fix sendfile() call for OSX

Signed-off-by: Eduardo Silva <eduardo@monkey.io>
Socket: fix warnings on OSX

Signed-off-by: Eduardo Silva <eduardo@monkey.io>