Refactor cc compiling to shared ccBase and ccDynamic initialization

Refactor common code out of NewCC* to initialize the ccBase,
ccDynamic, and ccLibrary structures.  Also adds an enum for the
default multilib values.

Change-Id: Iaeffe86bf2568b6054be4ddcee725818af45e14f
diff --git a/common/arch.go b/common/arch.go
index 8daade0..bc2a9d9 100644
--- a/common/arch.go
+++ b/common/arch.go
@@ -293,12 +293,12 @@
 	}
 }
 
-func InitArchModule(m AndroidModule, defaultMultilib string,
+func InitArchModule(m AndroidModule, defaultMultilib Multilib,
 	propertyStructs ...interface{}) (blueprint.Module, []interface{}) {
 
 	base := m.base()
 
-	base.commonProperties.Compile_multilib = defaultMultilib
+	base.commonProperties.Compile_multilib = string(defaultMultilib)
 
 	base.generalProperties = append(base.generalProperties,
 		&base.commonProperties)