[build] cleanup directory;
[cmake] fixed glob expression;
[main] minor fixes (one include, a semicolon and a useless line);