Note that for accessing linux specific files and APIs you don't need to turn your app in a full winelib app. Just use winegcc/wineg++ to build a small winelib library containing the functionality you need and from your windows app it is just a 'win32 plugin dll'. As long as it isn't too fancy it should work on all distributions and won't require a recompile.