Ignore autogenerated header config.hh
Add thread lib detection for *nix