Not that the answer would not work but I think anyone who lands here should take a look at this Q/A. After reading over it I MUST agree that using an IoC within a class library smells like a ServiceLocator (anti-pattern) and that Coupling a library to a container is a smell.
Initially I thought I would be doing a good thing, best thing I did was to look it up first.