https://github.com/google/googletest/pull/1439 makes it possible to remove horrible hacks I wrote before.