Add support for legacy system calls.

This change adds support for some legacy system calls so qemu bsd
user-mode will still work on older versions of FreeBSD (i.e. 9.X).