Build fixes for TE plugin