route: add syscall wrapper for BSD variants