configure: add check for YAZ version