fixed incorrect linking to MKL, cleaned up debug output