Fixbug

I've fixed a compilation error and added the rebar bin.