Various fixes for unity/.net core library export