Add some methods for Thread GWT emulation.