Bugfix 3190: Adding CV_EXPORTS commands for build purposes

Suggested in http://code.opencv.org/issues/3190