ENH: Get rid of hard-coded lbfgs. Closes #988.