Changes QD target to iOS5 and fixes __weak assignment