Attempt to fix windows build (__thread gcc only keyword is used)