fix all non external warnings for debug
fix CCConsole bugs in release