fix errors in demo/demo.c found by clang CC='clang' CFLAGS='-fsanitize=address,undefined -O3 -g -fPIC -I./'