fix build scripts for 1.13