lyx: major update and some fixes