Use the old line engine with hardcoded colors as fallback

In case of python-related errors.
Add autogeneration of config.h and remove debug messages from CMakeLists