Improve the compile script (it should work now!)