Fixed a SEGV.
Removed unused headers.