Add deps to ERL_LIBS when compiling

This allows erlc to find behaviours defined by other applications.