Fix compiling errors.

I should always compile everywhere with `-Wall -Werror`.