Compile fixes.

Signed-off-by: katlogic <kat@lua.cz>
Add console

Signed-off-by: katlogic <kat@lua.cz>