fix thrift compiler build

Change-Id: Iecd7e06adee2214d336ddaf7e993075c35ba717f
Signed-off-by: liuhuahang <liuhuahang@xiaomi.com>