Fixes cyclic import on OS X(#9635)