minor modification about dll exporting.