Slight modifications on OpenCV to be able to generate packages with CPack.