Fix thread local annotatoin and add back type traits is_convertable for MSVC