Changed from make based build to rebar based