You should send a pull request to to libsvm to add this.