Add basic NetBSD support.

Signed-off-by: Thomas Klausner <tk@giga.or.at>