fix compilation failure on NetBSD introduced by previous commit