Make build work on NetBSD