update test compile patch from https://codereview.chromium.org/14813020/