few fixes to libbsd removal