Better unix support

The mutex was not properly initialized.