Erlang serial-port support; based on serial-1.0 by Johan Bevemyr