Update to support serial port in OSX emulator.