Fix some GN component build issues.

This fixes some files not compiling with the proper flags for component mode.

The device_event_log target in GN is a source set in GN and a component in GYP. This difference was causing some errors. I changed this to be a static library in GYP. It only has 2 files in it so making a whole shared library for this target seems wasteful.

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

Cr-Commit-Position: refs/heads/master@{#320805}
10 files changed