improved setting up from environment variables, added copy constructors ...

...around, improved CMakeLists.txt (should be structurally fixed now), and an optional dlib-based solver on the kernel plugin (its small and inefficient, and not working anyway, why not).