Change -Wpedantic to -pedantic to fix g++ <4.8 errors