Fixed embedded texture loading and various warnings