repair build script for x86