Bug 1007272: Set the right context before a build.

[merge]