nb2: workaround for breakage on recent libraries