Slight tweak to allow the reflection caching to work for standalone module builds