Allows dynamic loading of agents. Stolen from JMockIt.