Patched to use atomic_flag and atomic<bool> instead of volatile.
Update to v0.0.13