Fix console.

Queue is now cleared as soon as possible.
Expose console as FILE.

With that change stdio.h functions can be used to write to the console.
Add debug macro.