Build fixes
Delete the wmap entries for real
Turns out the resources were never deleted.
Call Acquire() in Resource constructor.
TryEmptyResourceCache now deletes the unused resources (those with
refcount==1 are only referenced by the Resource Manager)