Fixed build warnings
Fixed build errors in linux after I upgraded to g++ 4.8
Removed my own AtomicInt implementation from the shared pointer in favor of the
new atomic class in c++11.

Minor syntax change in id.h