preliminary NetBSD support (only tested on amd64 so far)
finished and tested NetBSD support for i386 and amd64