Mitigating Spectre v1 Attacks in C++