Bug 844409: Implement proper support of --overload-modules for mobile.

https://bugzilla.mozilla.org/show_bug.cgi?id=844409