The latter was crashing in Windows when building with the release EXR2.0 libraries.
I still don't know why, and it may be worth looking at it again. It's a hard case to solve though, given that it works fine in Debug.