fixing xcode5 compiler warnings