Fix compile issues in mysql-ha plugin