Update comments for clarity

Signed-off-by: Rick Taylor <rick@tropicalstormsoftware.com>
Update SmartPtr to use allocate_new

Signed-off-by: Rick Taylor <rick@tropicalstormsoftware.com>
Update atomics to use memory barriers and autoconf correctly

Signed-off-by: Rick Taylor <rick@tropicalstormsoftware.com>