Updated to use CMake's improved target commands.
Some fixes for MSVC warnings.
compile fix for linux
linux compile fixes
Further updates to CMake files.
Submodule updated.