fixed build for *nix platform