Fix snippet compiler sample.

Remaining problems:

Application can hang after debugging.
Selecting item in Errors list does not jump to text editor line.