Use pthread_equal to check equality as per manual no other method is reliable
Rewwork printgnu to allow been called standalone