fix s2 build