Make the gamelogic code closer to the one in master
Fix the compilation of the TTY client
Fix the formatting of some commands
Fix cgame.qvm

The problem was that the first function in the qvm wasn't vmMain
so the vm interpreter was calling another one.
Fix native libraries