Merge from internal version
Add compile dependancy of targets which generated header files,
Allow prebuilt cc_library has only static/dynamic library
Add option to control action of duplicated source compiling