fix thirdparty build: assign compiler explicitly, generate PIC code for thrift static lib
fix thirdparty build: assign compiler explicitly, generate PIC code for thrift static lib

Summary: Ref T9266

Test Plan: N/A

Reviewers: qinzuoyan, cailiuyang, wutao1, heyuchen

Reviewed By: qinzuoyan

Subscribers: #pegasus

Maniphest Tasks: T9266

Differential Revision: https://phabricator.d.xiaomi.net/D74571

shengofsun/rDSN,shengofsun/rDSN,shengofsun/rDSN,shengofsun/rDSN,shengofsun/rDSN,shengofsun/rDSN,shengofsun/rDSN,shengofsun/rDSN