Attached there is a patch for exrdisplay/applyCtl.cpp that solves the problem, just including <cstdlib> is enough.

Please also note that a similar issue could be also in playexr/ctlToLut.cpp, and basically the same patch could be applied there too. (I miss the dependancies for compiling the CTL stuff, so I was not able to verify.)