Fix threaded initialization and enable it on Linux.

Reported by Mike Hommey.
2 files changed