Fixed makefile and examples to work with latest headers.
Fixed mistake with ATOMIC_BLOCK