Use the newly refactored snlsys library

- Minor refactoring of the whole source code;
- Use tje default cmake package to find OpenGL;
- Replace the `per file' license header by a global LICENSE file
covering the whole project.