Made changes to bt_builder.cpp to solve some compiler errors.