Fix non-MSVC build