fixing bug in rs232_linux.cpp and porting code to rs232_linux.c
Windows support added