Fix non windows platforms.

PoC not tested.