add missing include directories specification for OpenEXR

IlmImfCtl needs OpenEXR's ImfThreading.h so add the OpenEXR include path
changes for OS/X compilation

Various updates to routines to fix library discovery under OS/X when
installing with brew