Fixed compilation on NetBSD.