Fixed pimpl for win (added intermediate template class - impl_cast_holder)