Fixed build on NetBSD 6.