update tree hash fix compile with msvc 2012