Fixed a few dependency related bugs in setup.py