Add some smarts for library projects.