Fixes compiler warnings for mac and ios

Fixes compiler warnings for mac and ios