Get static compilation working from setup.py