Fixing build failure for non-VS compilers