Fix to query_classifier not being linked at all when using cmake