Made necessary changes to support GregTech 5.07

Ported to GregTech 5.07.