C# Update

Added platform specific code for generating thumbnails along with
conditional compilation defines for selecting the desired thumbnail
generator build. Corrected several minor bugs.