Include msvc_compat.h inside state.cpp