use -pedantic instead of -Wpedantic

For backwards compatibility. Older version of g++ (those on travis CI) only accepts -pedantic flag.