This is a very very nice idea Tschak! As usal...
Unfortunately i'm a beginner in programming and therefore no big help.
In addition i think i'm learning the wrong language for this project but that brings me to the point: Why don't you use Java?
It would run on all three mentioned platforms without compiling and stuff.
Most probably because you know C much better?!