[bsd] fixes