LGPL->MIT license, some cleanups