fix build for non-Linux *nix systems