netmap support

More edits for additional review comments from Eric. Plus the FreeBSD build patch.