Fix compilation errors

Fix XCode5 compilation errors.