change static_cast to ImplicitCast_ for consitency fixes for building with path names containing spaces