When fixing MKL_LIBS to add the MKLROOT directory, the variable was cleared.