set cpp11 flag for gcc
fixed atomic initialization
fixed template param shadow problem
fixed unpack proble