Add rules for building a shared library
Fix LBFGS update, VMLM initialization and add more tuning parameters