Update windows

Add more error checking, create windows serial port object as the proper rb_cObject type and restore linux build compatibility.