Two teenagers have been jailed for life for murdering a boy who was stabbed to death just days before his 18th birthday.