resolving compilation issues for *nix