Add export flags to dll.