Minor cleanup, more details in desc.

Moved tcode to a C++ file

Cleaned up the glue a bit

Fixed the port definition to no longer crash on assembly and linking (by making the phases to do nothing at all)