fixing all -Wall warnings.