Fix for MSVC build