Some fixes in refcount updates
Update MSVC project with refcount changes