Using rebar

Using proper rebar call to build the project.
Otherwise missing files break dependent projects.

Thanks,