Added missing includes.
Fixed license header.