Add __syscall support for *BSD systems

Fixes #17

Signed-off-by: David Goulet <dgoulet@ev0ke.net>