Sorry, in the end I didn't write anything. This is cause I don't have time to program, and even to use iLiad! (I prefer plain paper for my mathematical study, and use iLiad for pleasure lectures.)
I don't remember now the correct libs to link, but maybe I still have the binary. If you need it, let me know.