treewide: introduce cc_static_library_with_headers

To properly wire up cc_libraries we need to build them static and
keep the headers. Thats not possible with vanilla cc_static_library.

Change-Id: Ia72660636086132eec6722f19b4233d45ce8f837
Reviewed-on: https://review.monogon.dev/c/monogon/+/4098
Tested-by: Jenkins CI
Reviewed-by: Jan Schär <jan@monogon.tech>
diff --git a/.bazelrc b/.bazelrc
index 0615477..9ecfa43 100644
--- a/.bazelrc
+++ b/.bazelrc
@@ -99,6 +99,7 @@
 
 # Use new-style C++ toolchain resolution.
 build --incompatible_enable_cc_toolchain_resolution
+build --experimental_cc_static_library
 
 # Use new-style proto toolchain resolution.
 build --incompatible_enable_proto_toolchain_resolution