Fix compilation errors, now rebar compatible.

There are only a few concerns I have about this patch, namely the "shadowed variable" errors in `erlog_parse.erl`. Otherwise, this allows compilation on R15B03-1 to succeed, with rebar.