Cross-platform serial port access library