Fix building order
修正编译顺序

Signed-off-by: Wanpeng Song <swpustc@mail.ustc.edu.cn>