Fixed 40 compile warnings.

Removed unused imports + various stuff