Add a needed dependency on the platform plugin
(cherry picked from commit 1906a2a)