fix compiler version string for gcc > 4.5
add cache and atomic64 files
impl atomic64 generic and trace once