Fixes to build festival with -Wall -Wextra -Werror
Fixes to build with clang and -Wall -Wextra -Werror