tools/configurator: fix compile error with -O2