Working windows and linux serial class