Fixed some compiler warnings.

Fixed bunch of the compiler warnings being reported through eclipse.