Refactor CMake script, enable all warnings for VS
Fix all warnings

 - disable those that dont matter
 - add casts for signed/unsigned mismatch
 - one switch block was missing a case
Merge branch 'master' of github.com:Deaod/CascLib