couple fixes for fbsd