diff --git a/crates/rattler_virtual_packages/Cargo.toml b/crates/rattler_virtual_packages/Cargo.toml
index d41946d5f..b4ca05caa 100644
--- a/crates/rattler_virtual_packages/Cargo.toml
+++ b/crates/rattler_virtual_packages/Cargo.toml
@@ -22,3 +22,6 @@ serde = { version = "1.0.130", features = ["derive"] }
[target.'cfg(target_os="macos")'.dependencies]
plist = "1"
+
+[target.'cfg(unix)'.dependencies]
+regex = "1.8.2"
diff --git a/crates/rattler_virtual_packages/src/libc.rs b/crates/rattler_virtual_packages/src/libc.rs
index 51c4365ba..2c68345d3 100644
--- a/crates/rattler_virtual_packages/src/libc.rs
+++ b/crates/rattler_virtual_packages/src/libc.rs
@@ -2,7 +2,6 @@
use once_cell::sync::OnceCell;
use rattler_conda_types::{ParseVersionError, Version};
-use std::ffi::{FromVecWithNulError, IntoStringError};
/// Returns the LibC version and family of the current platform.
///
@@ -15,19 +14,6 @@ pub fn libc_family_and_version() -> Result