Fixing 10.10 warnings