Fixed xcode warnings for MacOSX