Fix some C(++) compilation warnings