Useful math stuff missing from GWT.