Fix compilation with --enable-gcc-warnings and -O1