Use macro for stats, mutex on 32-bit systems.

Fixes #22.