Suppressed some compiler warnings.

This is necessary since we support both JDK6 and 7.