Arduino Modbus Slave no matching function for call to 'modbusSlave::setBaud(int)'

Weird,huh? Also, I've tried to start from the example, modifying it and not copying it to another sketch and it compiles well.
What could be the cause of that?