libSM: update to 1.2.2.