Load threads::shared before Wx. #1018