Backport Chromium r233274 to M32.

This patch adapts the fixes done in r233274 ("ozone: Fix shared component
builds") to the M32 code base.

Effecting CLs:
https://codereview.chromium.org/59263004