made this compile for mariadb 10 and initial quick test show queue is working.