Add an admittedly ugly if around serialposix code so that client can run on Windows (the client doesn't actually use smart_serial, but it does import it).