COMP: Fix build issue when libSVM is OFF or libsiftfast is OFF and Testing ON Closes #1636 and #2141 See merge request !788