Fix undefined reference with -O0.