corrected compile errors on erlang 17