Append Apache 2.0 license to main.cpp