Fixed script to allow compile via setup.py

Well, almost. Now I get an error from somewhere else! D: