Add cp library.
Fix dependencies & includes.