Fix compile scripts