Add the 'build' directory to '.gitignore'

Issue #1082.