Use logic for providing a platform default thread enforcer.

Closes #68.