fix pkg-config --static when pthread is reported