Add CodeEditor based on Scintilla.

Also fixed GCC4 build.
What's this empty function for?