fixes in cmake files

solves compiler and linker problems for occt versions >= 6.7.3
Merge pull request #1 from 5263/buildimprovements

fixes in cmake files