Make unregister helper static, add equals to wrapper to fix unregister on ICS.
Merge pull request #2 from rlac/master

Fix for unregister on ICS