honour flags in the environment; add flags for clang
Merge pull request #1 from Maxime2/master

honour flags in the environment; add flags for clang