Fixed some native compilation warnings.