Fix compilation of UI based targets for OS X and for OpenCV 3.0.
Fix OpenEXIF compile on Mac OS X. Need to check other platforms.
Fix compilation for nRobustViewMatching.