Ming Jin: added LGPL license