[installer] [host] use #ifdef to make sure we only use nixdevicestuff on *nix; Linux routines only defined on Linux builds; OSX routines only on OSX builds. This will fix the Windows build