Adjusted the TryFinally function so it also allows you to modify the exception
in the catch body before you rethrow.

I also updated the extended exception imlementation to use stl objects and
made sure the Qt library builds.
Fixed the build again