windows emulate lib