Restricting /lib to top level directory in .gitignore

This patch was proposed by Sean Mackrory.