Polyfill support for non-composer autoloading

This ensures that polyfill support for version-specific variants of classes works correctly when not using composer for autoloading. See zendframework/zf2#3714 for more details.