Add guard to protect against importing library targets twice.