Fixed some OptiFine compatibillity issues.