Loading of external cast libraries.  (With room for improvement.)