Clone of LyX repository, but applying http://git.lyx.org/?p=gsoc.git;a=commitdiff;h=2f2b2a79ca34ddbb8347701f653234d691c31a15;hp=6781db79c580a7010ac0ed019c5fdebc249debfc#patch1