Use pkg-config for flags/libs on nix, update refs.