Fix compilation script

Hang on, I will be adding more to this.