add suport for old erlang
Merge pull request #7 from darkleaf/master

add suport for old erlang