Improve the compile script