Making portable branch work again

The portable branch was untouched for a long time now. I made some fixes and updated Nuget so it would build and work properly.