Fixing some compilation problems with older version of XCode