Removed unnecessary nuget targets
Fixed compiler warnings