ocl: fix cleanup in static builds
ocl: fix CV_EXPORTS usage (misplaced in functions declarations)