fix binary output for non 'nix platforms