Fix bug in async-data preventing having T const
Fix build errors in Clang and MSVC