Fixing compiler config according to Stefan's comment. MKL and MASS libraries are not added in the compiler settings.