Add version to main() so that terminal.d can be imported by other programs.
workaround destructor problem