Remove boolean arguments from NewLibrary()

NewLibrary is going to be used for header only libraries.  Instead
of adding more boolean arguments, replace the existing ones with
BuildOnlyStatic and BuildOnlyShared calls on the libraryDecorator
returned by NewLibrary.

Test: m -j, compare build.ninja
Change-Id: Id390b66cbf2a5f0932b32f40a5e18eb9e3852ee7
diff --git a/cc/prebuilt.go b/cc/prebuilt.go
index 0a54570..abe03b9 100644
--- a/cc/prebuilt.go
+++ b/cc/prebuilt.go
@@ -60,7 +60,7 @@
 }
 
 func prebuiltSharedLibraryFactory() (blueprint.Module, []interface{}) {
-	module, library := NewLibrary(android.HostAndDeviceSupported, true, true)
+	module, library := NewLibrary(android.HostAndDeviceSupported)
 	module.compiler = nil
 
 	prebuilt := &prebuiltLibraryLinker{