Fixed warnings with -W.