fix build error on *nix