Template environment script uses absolute path
Code to add pthread when using MKL

This makes it possible to compile on ubuntu with enthought