Use -pedantic instead of -Wpedantic to support older compilers.