Revert "no clreleasedevice"

This reverts commit d7b0462f98c7cfe2ce6254d2301ede47bddfc80c.
Revert "fixed retain again"

This reverts commit a6a429186d88ea7470d245f18294d3d8747aaf28.
Revert "clRetainDevice causing problems"

This reverts commit 5d3987e61707a278674ecb5c956771d484c7442d.