Add lib directory and associated files.