use original LBFGS package and catch exception; clean lines that causes
warnings;