Fix warnings and most texture things