Fix bugs in mcgb.lib