Update rebar.config: so_specs -> port_specs
Remove useless macro
Use erl_drv_output_term with driver API 2.1 or later