Linux emulator fixes