Add ifdef on leak check includes (they're buggy on older msvc)