fix build for *nix platform