modify code to be compatible with playn html backend (ie fix for gwt API and compiler)