Add conditional compilation stuff for non-nix