Add missing copyright header and fix unused warnings. Change-Id: Ib215f1122febb018c30bd5872731745b1c68c01a