Mono UI/Crash fixes

Sorry for the re-pull request, fixing my git branching.

This pull has UI/Crash related fixes for mono plus a bug fix in GetFile() for mono.