fixes in cmake files

solves compiler and linker problems for occt versions >= 6.7.3