modified few files for compilation on osx after installing required libs

need to install openexr (Additional, apart from the libs that are required from master) http://www.openexr.com/downloads.html