Fixed compiler errors/warnings.

Fixed compiler errors/warnings.