Don't include NetBSD version in ARCH. NetBSD is BSD.
Add missing intptr_t and uintptr_t (sync with FreeBSD and OpenBSD).
fix tests for netbsd
Merge pull request #351 from tduehr/netbsd

Netbsd