fix for (idiotic) alloc-buf bug having to do with *nix/win struct population