Fix usart_messages_waiting on linux