Fixed TE mod compact compilation errors.
The API interaction is not expected to work yet, since TE is not yet
released for 1.7.2.