Add support for library projects. See #5.