Fix minor warnings and make vm more NetBSD compatible

- Fix various compilation warnings
- rename copyinproc() and copyoutproc() as copyin_proc() and
  copyout_proc() for NetBSD compatibility, though we still use
  freeBSD style vm.h header file