Add kqueue support and make epoll optional.
Add kqueue support and make epoll optional.
Add missing include for ssize_t on FreeBSD.

src/tvhlog.h:48: error: expected declaration specifiers or '...' before 'ssize_t'
src/tvhlog.c:244: error: conflicting types for '_tvhlog_hexdump'
src/tvhlog.h:48: error: previous declaration of '_tvhlog_hexdump' was here
Fix sendfile() call on FreeBSD/i386

src/webui/webui.c:885: warning: passing argument 6 of 'sendfile' from incompatible pointer type
Fix printf format modifier to build properly with CLANG.

src/htsp_server.c:485:55: error: format specifies type 'short' but the argument has type 'int' [-Werror,-Wformat]
        p += snprintf(url+p, sizeof(url)-p, "%s%s%s:%hd%s",
                                                    ~~^
                                                    %d
Merge branch 'master' of https://github.com/decke/tvheadend