Moved 3rd party code to lib directory.