Add support to build only CLI version of Dia
It would be good if it would be easy to build only a reduced version of Dia (without GUI, only CLI). This version would then be better suited for Continuous Integration services (Travis CI, GitHub actions, etc.).