Fixed errors in compile script.