support setting a cc_binary target as the thrift compiler

for example:

thrift_library_config(
    # The path to thrift compiler.
    thrift='//thirdparty/thrift:thrift',
)

//thirdparty/thrift:thrift is a cc_binary target of the thrift compiler executable.