Add basic compatibility for *nix and Windows