Change syscall to flush serial buffer on Windows (closes #144)

Thank you AlexMaz.