[build] Fixed wrong dependency type.
(cherry picked from commit 150ded380163cbda1dda74ae0e82085c67c42d16)