BZ-1039716: Added support for static and dynamic module patches.