add new build files to gitignore; test that build doesn't leave repo dirty
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/16441
Differential Revision: D13880053
Pulled By: ezyang
fbshipit-source-id: 0171f42438efdd651b6af22e521b80e85b12681c