Fix compilation in *nix

Thanks Andrey for reporting the issue