mock library should be optional only

was always imported, thx to QuLogic, see #732.