Actually, I have not configured the compilation of the Touchlib on my own, yet. But I have heard that it should be a hell of complicated. As I came upon the website of the original author of the Touchlib in which he gives a lot of hints, I wanted to post his page here: How to Compile the Touchlib.