Fix build with -pedantic