Throw error if LIBSVM is not compiled.
Throw error if random-forest is not compiled.