updated build scripts for OpenCV