Well you could fiddle around and change the library a bit.
I had to slightly modify the library.
Remove from the constructor initialization pin to the function.
OneWire::OneWire( uint8_t pinArg)
void OneWire::pinset (uint8_t pinArg)
pin = pinArg;
port = digitalPinToPort (pin);
bitmask = digitalPinToBitMask (pin);
outputReg = portOutputRegister (port);
inputReg = portInputRegister (port);
modeReg = portModeRegister (port);
In fact, the designer should be without this argument, and it should already be set in the setup() section.
But this will lead to incompatibilities with previous versions.