fixed linkage for module export.