Make imports optional to support building without full dependencies