fix compile script