Don't use the same global variable as hds to indicate initialisation

Under Ubuntu this variable was shared between libraries