Fix link errors, oversight in cmd_module sm