*: fix NetBSD compile issues

Yes, finally, NetBSD support!  :)