Fix build error when deployment target iOS5.