Update makescript for support cross compilation