Fix compile on NetBSD-4