Moved external sources to lib.