Some more adaptations to Mac OSX
More adjusting for mac osx so that viewing features (by opencv) works.