Add Delegate/Event and finish MainWindow header
Compilation fixes; also TemporaryBuffer = nice try; doesn't compile. Back to alloca directly instead.
Re-eanble MainWindow.cpp build.