Fix windows test/benchmark compilation issues