Fixed build error resulting from supporting iOS 5