- made the build system more robust.
- debug no longer opens a new lxterminal on my system.