fix imkl sanity check for recent version + style fixes