Update build scripts.
Merge branch '4.2'