Made changes for compatibility with new Cortex ObjectPool.
Merge pull request #469 from johnhaddon/objectPoolCompatibility

Made changes for compatibility with new Cortex ObjectPool.