Improve MSVC compat for push/pop operations