Calling GProlog in C