Refactored nmergec to use dynamic libraries for all commands