Fix cmake to build OpenCV framework on OSX

Add python script to build OpenCV framework for OSX platform (With i386 and x86_64 architechtures).