emulator: fix Linux compilation issues