I ended up just modifying the ps2 library into normal arduino code that I can have inside a single script.
However this might be an interesting feature request in general, i.e. the ability to load external libraries, without having to customize Firmata.