Fixing several compiler warnings.