Fix static module list generation for ldb.