Fix a few bugs with MSI.
Update LKG, bump version to 0.6.5.