add rebar and update the Makefile