BUG: Fix LIBSVM build on Linux and other related issues