NetBSD/Darwin fixes