Use `setModule()` as described in https://github.com/energia/Energia/blob/master/hardware/lm4f/libraries/Wire/Wire.cpp#L599
void setup() {
Wire.setModule(3);
Wire.begin();
...
}
Similar logic applies for UART and SPI.
As an alternative, declare the variable as in https://github.com/energia/Energia/blob/master/hardware/lm4f/libraries/Wire/Wire.cpp#L161
TwoWire Wire2(2);