Update .gitignore

This removes ignore rules for autotools and adds some for CMake.