Make use of options for cc builder, cc studio and spine
fix includes so that minizip builds correctly on Mingw-w64
Merge pull request #9080 from vovkasm/cmake-refactoring

Cmake refactorings and fixes
Merge pull request #9110 from martell/cmake

Cmake fixes and build fixes