Fixed building error for xCode 6.