Remove unnecessary cmake command.
Reorganize cmake file and add comments.
Since we use C++11, no chance to compile with gcc < 4.0.
Workaround for a compilation issue with mingw.