gnu-prolog: fix build with clang