Support building via rebar

Attach patches make 

rebar get-deps

work by compiling the shared objects. Can this be applied?