terminal_log: don't write null-termination to terminal

Fixes #1231.
Qt5: migrate to new ports mechanism

Fixes #1233.
GCC: migrate to new ports mechanism

Fixes #1234.
GBD: migrate to new ports mechanism

Fixes #1237.