Fixed debug trap for Windows and added debug trap for Linux.
Fixed exports to use OPENEXR_DLL when doing DLL and DSO builds.
Fixed CMake files to support building on Windows and build DLLs/DSOs, rather than static libs.
Fixed exports for several Imf classes.
Fixed CMake files to build on Windows and properly build DLLs/DSOs.