Fixed building on NetBSD