remove compile warning in cygwin & linux
add set device info serial functions
add dump device info