[CMakeDriver]Custom CC/LibType and bug fix