netbsd: fix build

Thanks @ezra1!

Closes #1391