[RFC] Multi-OS support

For neovim/neovim#1538.
Got it. More magic than I would like, but I don't have a better suggestion :)