I think we had to paste the pathfinding code in to those files as one of the great many hacks necessary to work around missing features in non-browser engines. However we've dropped official support for both those platforms, so unless you want to bend over backwards to get your plugin working in deprecated platforms, don't worry about it.