pub fn detect_corelib() -> Option<PathBuf>