update bsdbar.h related matter, misc update