prototypes: missing license headers.
prototypes: fixed memory leak.

Will be done differently when shapes are fixed in Magnum, no time
for it now.