Wide characters and file stream IO fixes for Windows

You might want to skip to CMake changes.
I have streamlined my ILMBase variable to have a case convention which matches Boost