Make it compile with -Wall and -pedantic

I usually ensure to compile with -Wall -pedantic -Werror always,
but somehow, I managed to mess it up this time. Fixed it now.