Fix for non-MSVC compilation