Revert "Revert "Fix compile error on GWT, sorry!""

This reverts commit 8babc71f88275edd5509ae0a226f1c108341d19c.