Detect at configure time how to link -lbfd