Fix for old versions of msvc