Properly define the base cmake variables.
Force the compiler to be $ENV{CC}
Added types to cmake vars defined on the command line
Updated submodules