Making libraries compatible with GWT