update for netbsd compatibility