Fixed some compiler warnings in Xcode