Add CodeEditor based on Scintilla.

Also fixed GCC4 build.