By "wizard" you mean templates?
Please check out your global compiler options (Compiler, Compiler options - or settings, plugins, compiler) and check if there's the infamous -mwindows flag. I checked the CVS source code via web (sourceforge), and couldn't find mwindows in the project files. Neither the templates, nor codeblocks.cbp. Also try resetting the compiler options and check if the problem persists. If it does, then it means it's a bug, and you should report at sourceforge.