Try preventing strptime thread safety problems.

Fixes #231