The old order caused cmake in Mac OSX to not detect c++11. This fixes the problem.
This change should be done to the plugins too