added add_definitions(-DCVAPI_EXPORTS) to cmakelists.txt
Merge pull request #1204 from berak:Bug_3170