Added copyright headers to files

Added Copyright Headers to all .c, .cc, .cpp, .hh, .h, .r, .m and .sh
files, excluding files in /lib/