Add setupegg.py to support setuptools
Update extern declarations in Cython code