fix for vs2013 compile

better to use std::atomic_init