GYP: fix compile flake for second-hand use of generated headers.

BUG=https://code.google.com/p/chromium/issues/detail?id=435144
R=thakis@chromium.org

Review URL: https://codereview.chromium.org/744203002