Minor changes were made to brat libraries at least in #7, these should be ported back to brat master as much as possible.