ibrcommon: Abort configure if the threading library is not detected