Add -DBSD to allow compiling on NetBSD.