Remove unnecessary cmake flags for static opencv