use -pedantic instead of -Wpedantic as gcc only knows the former.

Well, I think the commit message says everything ;-)