Clean up devenum and properly implement DllCanUnloadNow ref counting.