fix warnings from new SDK