Add Apache 2.0 header and generated code warning