Windows to *nix environment bugfixes.