Portability fixes for FreeBSD (ptrace, getprogname, sendfile, K_OFF, versionsort)

Merged Val Packett requested to merge (removed):master into master

With these changes, it's possible to build libinput on FreeBSD completely out of the box.

Edited by Val Packett

Merge request reports