Fix compile issues in queryindex module.