Fix link error when compiling with gcc -O0.