Makefile bugfixes

Fixes ability to compile/link against boost and mkl on hopper and edison.