should be -lmkl_intel_thread, not just -lmkl_thread