Add some files to gitignore

Also add another mechanism to build the pkg.