Renamed resources "modules" into "libraries"
Comparison and refCount for handles