modified scope_guard and version_util

1:add namespace wrapper for scope_guard
2: fix memory release for singleton object