Fixed -Wall warnings.