Bug 990437 - Fix windows build by moving implicit AddRef/Release calls to the cpp file