fix issue #171 (compiling on NetBSD)