Set native thread name when application requests it

See http://msdn.microsoft.com/en-us/library/xcb2z8hs%28v=vs.71%29.aspx