Fix copyright and prototypes.