bazel: Use `target_compatible_with`

The `//:libusb_core` target incorrectly included
`@platforms//:incompatible` in `deps`. This CL moves it to
`target_compatible_with`.

Change-Id: Iba7f07868d7c90fa25ce24d44438c86e88baa654
diff --git a/libusb.BUILD b/libusb.BUILD
index e65b373..87bd2e0 100644
--- a/libusb.BUILD
+++ b/libusb.BUILD
@@ -66,11 +66,17 @@
     name = "libusb_core",
     srcs = glob(["libusb/*.c"]),
     visibility = ["//visibility:private"],
+    target_compatible_with = select({
+        "@platforms//os:linux": [],
+        "@platforms//os:macos": [],
+        "@platforms//os:windows": [],
+        "//conditions:default": ["@platforms//:incompatible"],
+    }),
     deps = select({
         "@platforms//os:linux": [":libusb_linux"],
         "@platforms//os:macos": [":libusb_macos"],
         "@platforms//os:windows": [":libusb_windows"],
-        "//conditions:default": ["@platforms//:incompatible"],
+        "//conditions:default": [],
     }) + [
         ":libusb_config",
         ":libusb_headers",