Needs a comment to explain wtf it is doing and why in the world it's only non-win32 platforms.