It's not too bad, but I would suggest still keeping the programs separate, and using file descriptors to talk between the windows and linux parts. (Yes, you can use winelib and make unix calls from a windows program, but you can't just link windows code into a unix program.)