support setting a cc_binary target as the thrift compiler

N/A

for example:

thrift_library_config(
    # The path to thrift compiler.
    thrift='//thirdparty/thrift:thrift',
)

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