fix errors when running setup.py install