Align the compilation and link flags with master branch. It should fix ROOT-6583