Cmake env

Set CMake environment vars so that it actually finds the headers and the libraries.

Follow-up of hpcugent/easybuild-framework#812