Fixed some warnings and update to latest StageXL