Fix bugs in setup.py and add more build artifacts to .gitignore

Change-Id: I4b3258c54457a89e2c987eda90950b129823b90f
Merge "Fix bugs in setup.py and add more build artifacts to .gitignore"