add support for NetBSD.
Merge pull request #11 from iquiw/master

add support for NetBSD